<?php
require_once PATH_SITE.'cn/royan/php/proxys/SocketProxy.proxy.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once PATH_SITE.'org/puremvc/php/patterns/command/SimpleCommand.php';
/**
 * Description of StartSocketCommand
 *
 * @author Royan
 */
class StartSocketCommand extends SimpleCommand
{
    //put your code here
    public function execute( INotification $notification )
    {
        IF( !$this->facade->hasProxy( SocketProxy::NAME ) )
            $this->facade->registerProxy( new SocketProxy() );
        
        $socketProxy = $this->facade->retrieveProxy( SocketProxy::NAME );
        $socketProxy->runServer( $notification->getBody() );
    }
}

?>
